define (require, exports, module) ->
  base_api = require 'mods/api/base_api'

  # 开客户号
  openClient: (params) ->
    url = '/rest/acc/OpenClient'
    return base_api.postRequestByParams url, params

  # 开理财号
  openSecum: (params) ->
    url = '/rest/acc/OpenSecum'
    return base_api.postRequestByParams url, params

  # 开交易号
  openTrans: (params) ->
    url = '/rest/acc/OpenTrans'
    return base_api.postRequestByParams url, params

  # 保存快捷支付签约信息
  savePaySignContract: (params)->
    url = '/payment_save'
    return base_api.postRequestByParams url, params

  # 查询快捷支付签约信息
  queryPastPayOrder: (params)->
    url = '/payment_query'
    return base_api.postRequestByParams url, params

  # 用户来查询所有签约订单
  queryPastPayOrderAll: (params)->
    url = '/payment_queryAll'
    return base_api.postRequestByParams url, params

  # 查询是否签署协议
  queryContract: (params) ->
    url = '/rest/qry/QueryEcontract'
    return base_api.postRequestByParams url, params

  # 查询产品对应的合同
  queryProdContract: (params)->
    url = '/rest/qry/QryEcontractInfo'
    return base_api.postRequestByParams url, params